package com.platform.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 实体
 * 表名 t_pro_category
 * 编辑商品:商品类型
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-03-29 10:09:37
 */
public class ProCategoryEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Integer id;
    //分类名称
    private String name;
    //描述
    private String frontDesc;
    //上级编号
    private Integer parentId;
    //图片地址
    private String imageUrl;
    //是否显示
    private Integer show;
    //排序值
    private Integer sortOrder;

    private Date createDate;
    //手续费
    private BigDecimal rate;
    //赠送能量利率
    private BigDecimal energyRate;
    //释放能量利率
    private BigDecimal spcFree;
    //团队赠送
    private BigDecimal gaveTeam;

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * 设置：
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取：
     */
    public Integer getId() {
        return id;
    }
    /**
     * 设置：分类名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取：分类名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置：描述
     */
    public void setFrontDesc(String frontDesc) {
        this.frontDesc = frontDesc;
    }

    /**
     * 获取：描述
     */
    public String getFrontDesc() {
        return frontDesc;
    }
    /**
     * 设置：上级编号
     */
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    /**
     * 获取：上级编号
     */
    public Integer getParentId() {
        return parentId;
    }
    /**
     * 设置：图片地址
     */
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    /**
     * 获取：图片地址
     */
    public String getImageUrl() {
        return imageUrl;
    }
    /**
     * 设置：是否显示
     */
    public void setShow(Integer show) {
        this.show = show;
    }

    /**
     * 获取：是否显示
     */
    public Integer getShow() {
        return show;
    }
    /**
     * 设置：排序值
     */
    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    /**
     * 获取：排序值
     */
    public Integer getSortOrder() {
        return sortOrder;
    }

    public BigDecimal getRate() {
        return rate;
    }

    public void setRate(BigDecimal rate) {
        this.rate = rate;
    }

    public BigDecimal getEnergyRate() {
        return energyRate==null?new BigDecimal(0):energyRate;
    }

    public void setEnergyRate(BigDecimal energyRate) {
        this.energyRate = (energyRate==null?new BigDecimal(0):energyRate);
    }

    public BigDecimal getSpcFree() {
        return spcFree==null?new BigDecimal(0):spcFree;
    }

    public void setSpcFree(BigDecimal spcFree) {
        this.spcFree = (spcFree==null?new BigDecimal(0):spcFree);
    }

    public BigDecimal getGaveTeam() {
        return gaveTeam == null ? new BigDecimal(0) : gaveTeam;
    }

    public void setGaveTeam(BigDecimal gaveTeam) {
        this.gaveTeam = (gaveTeam==null?new BigDecimal(0) :gaveTeam);
    }
}
